package com.doone.telmarket.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.doone.telmarket.domain.GuangGao;
import com.doone.telmarket.infrastructure.dao.GuangGaoDao;
@Service("guangGaoService")
public class GuangGaoServiceImpl implements GuangGaoService {

	@Autowired
	private GuangGaoDao guangGaoDao;
	
	public void updateGuangGao(GuangGao g) {
		guangGaoDao.updateGuangGao(g);
	}

	public List<GuangGao> selectAllGuangGao() {
		
		return guangGaoDao.selectAllGuangGao();
	}

	public void deleteGuangGao(int id) {
		guangGaoDao.deleteGuangGao(id);
	}

	public void insertGuangGao(GuangGao g) {
		guangGaoDao.insertGuangGao(g);
	}

	public GuangGao getByKey(int id) {
		return guangGaoDao.getByKey(id);
	}

}
